package nsh.cl.nd.khtn.mazedash.entity;

public enum CellType {
	WALL(0),
	PATH(1),
	PLAYER(3),
	
	;
	
	
	int value;
	CellType(int value) {
		this.value = value;
	}
	
	public int getValue() {
		return value;
	};
	
	public static CellType fromValue(int value) {
		for (CellType cellType : values()) {
			if (cellType.getValue() == value) {
				return cellType;
			}
		}
		return null;
	}
}
